From: Maxim Ermilov Date: Thu, 5 May 2011 10:06:05 +0000 (+0400) Subject: shell-xfixes-cursor: missing XFree X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~8274 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=88de26138a8b79d89884ff2eb6471c5a8e3b39ca;p=gnome-shell.git shell-xfixes-cursor: missing XFree memory returned by XFixesGetCursorImage should be freed after usage. https://bugzilla.gnome.org/show_bug.cgi?id=642652 --- diff --git a/src/shell-xfixes-cursor.c b/src/shell-xfixes-cursor.c index 14d2b59c4..334503df9 100644 --- a/src/shell-xfixes-cursor.c +++ b/src/shell-xfixes-cursor.c @@ -254,6 +254,7 @@ xfixes_cursor_reset_image (ShellXFixesCursor *xfixes_cursor) xfixes_cursor->cursor_hot_y = cursor_image->yhot; g_signal_emit (xfixes_cursor, signals[CURSOR_CHANGED], 0); } + XFree (cursor_image); } static void